libxc: remove broken endianess gate on lz4 decompressor
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 2 Jun 2014 15:08:12 +0000 (17:08 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Jun 2014 16:18:13 +0000 (17:18 +0100)
commitfbcc8b292638c07fa114fc904baf0e59a642e7ba
treefbb6782a8fe337d9c72b2215fe49e4e3d8708e50
parentd2ee2e3846f9b2577d2387fef82dad563cdd1c9a
libxc: remove broken endianess gate on lz4 decompressor

The lz4 decompressor had wrongly implemented a gate between
little-endian and big-endian versions of get_unaligned_le{16/32},
which turns out to be broken on all architectures supported by Xen,
because __LITTLE_ENDIAN is not defined. Instead of trying to fix
this, just implement the little-endian version and remove the switch.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_dom_decompress_lz4.c
xen/common/lz4/defs.h